/*
 * PaginaDTO.java
 *
 * Created on 8 de noviembre de 2007, 15:52
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package webportlet.model.pagina.dto;

import java.util.ArrayList;

/**
 *
 * @author Administrador
 */
public class PaginaDTO {
    
    private Long idPagina;
    private String nickName;
    private int numNoticias;
    private ArrayList <Long> noticias;
    private ArrayList <Long> marcadores;
    private ArrayList <Long> indicesBursatiles;
    private Long consejo;
    
    /** Creates a new instance of PaginaDTO */
    public PaginaDTO(Long idPagina,String nickname, int numNoticias) {
        
        this.idPagina = idPagina;
        this.nickName = nickname;
        this.numNoticias = numNoticias;
        this.indicesBursatiles = new ArrayList();
        this.marcadores = new ArrayList();
        this.noticias = new ArrayList();
        this.consejo = new Long(1);
        
    }

    public Long getIdPagina() {
        return idPagina;
    }

    public void setIdPagina(Long idPagina) {
        this.idPagina = idPagina;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getNumNoticias() {
        return numNoticias;
    }

    public void setNumNoticias(int numNoticias) {
        this.numNoticias = numNoticias;
    }

    public ArrayList <Long> getNoticias() {
        return noticias;
    }

    public void setNoticias(ArrayList noticias) {
        this.noticias = noticias;
    }

    public ArrayList <Long> getMarcadores() {
        return marcadores;
    }

    public void setMarcadores(ArrayList marcadores) {
        this.marcadores = marcadores;
    }

    public ArrayList <Long> getIndicesBursatiles() {
        return indicesBursatiles;
    }

    public void setIndicesBursatiles(ArrayList indicesBursatiles) {
        this.indicesBursatiles = indicesBursatiles;
    }

    public Long getConsejo() {
        return consejo;
    }

    public void setConsejo(Long consejo) {
        this.consejo = consejo;
    }
    public String toString() {
        String salida = new String("idPagina = " + getIdPagina() + " | " +
            "nickName = " + this.getNickName() + " | " +
            "numNoticias = " + this.getNumNoticias()) + " | "; 
        salida += "idNoticias = ";
        for(int i=0;i < this.getNoticias().size(); i++){
            salida += this.getNoticias().get(i) + "  ";
        }
        salida += " | idMarcadores = ";
        for(int i=0;i < this.getMarcadores().size(); i++){
            salida += this.getMarcadores().get(i) + "  ";
        } 
        salida += " | idIndicesBursatiles = ";
        for(int i=0;i < this.getIndicesBursatiles().size(); i++){
            salida += this.getIndicesBursatiles().get(i) + "  ";
        } 
        salida += " | idConsejo = " + this.getConsejo();
        return salida;
    }
}
